<?php
/**
 * Plugin Name: Cleverweb
 * Description: Diverse rettelser til theme + plugins af Cleverweb
 * Version: 1.0
 * Author: Cleverweb
 * Author URI: http://cleverweb.dk
 */

global $wp_version;

if(!version_compare($wp_version, '3.5', '>='))
{
   die('Plugin needs at least WordPress version 3.5 or higher');
}

if ( !defined( 'CW_DIR' ) ) {
	define( 'CW_DIR', plugin_dir_path( __FILE__ ) );
}
if ( !defined( 'CW_URL' ) ) {
	define( 'CW_URL', plugin_dir_url( __FILE__ ) );
}
if ( !defined( 'CW_ASSETS_URL' ) ) {
	define( 'CW_ASSETS_URL', plugin_dir_url( __FILE__ ).'assets/' );
}

include_once CW_DIR .'classes/cleverweb.php';
//include_once CW_DIR .'classes/cw_metaboxes.php';
//include_once CW_DIR .'classes/cw_widgets.php';
include_once CW_DIR . 'classes/admin.php';

function cw_plugin_activate() {
}

register_activation_hook( __FILE__, 'cw_plugin_activate' );

/* Deactivate plugin */
function cw_plugin_deactivate() {
}

register_deactivation_hook( __FILE__, 'cw_plugin_deactivate' );

if(!function_exists('dump'))
{
   function dump($obj)
   {
	echo '<pre>';
	print_r($obj);
	echo '</pre>';
   }
}